
import { getRequest, postRequest } from '@/lib/axios';
import {
    TASKLIST, TASKADD, TASKDEL, TASKUPDATE,
} from '@/config/api-constant/slotsgame'

// 任务列表
export const taskListApi = (param) => {
    return getRequest(TASKLIST, param)
}

// 添加任务
export const taskAddApi = (param) => {
    return postRequest(TASKADD, param)
}

//任务更新
export const taskUpdateApi = (param) => {
    return postRequest(TASKUPDATE, param)
}

// 删除任务
export const taskDelApi = (param) => {
    return postRequest(TASKDEL, param)
}